package cn.fengzhilun.javase.day09;

public class Person {
	public void hit(Animal animal) {
		
		System.out.println("揍他。。。");
		
		if(animal instanceof Cat) {
			Cat cat=(Cat) animal;
			cat.shout();
			//((Cat)animal).shout();
			
		}
	}
}
